#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "driver/uart.h"
#include "string.h"
#include "driver/gpio.h"
#include "cmd.h"

// #define  CONFIG_LOG_MAXIMUM_LEVEL       4 
#include "esp_log.h"

extern CmdHandle_t CmdHandle;
extern TaskHandle_t testCMDhand;
static const char *TestTag = "Test";


void set_test(void* n)
{
	int setdata = ((int*)n)[0];
	ESP_LOGI(TestTag,"set data is:%d", setdata);
}

void get_test(void* n)
{
	ESP_LOGI(TestTag,"do get test cmd");
}

void test_cmd_task(void *pvParameters) {
    MyCMDRegisterIns(&CmdHandle, InsSet, "set_test", set_test);
    MyCMDRegisterIns(&CmdHandle, InsGet, "get_test", get_test);
    vTaskDelete(testCMDhand);
}